package org.cloudie.docs.editor.client.commands.generic;

public class VirtualEntryTrashAddCommand extends VirtualEntryAddCommand {

  public final static int serialUid = 42;
  
  protected boolean isEmpty = true;
 
  public VirtualEntryTrashAddCommand(String id, String label,
	  boolean isEmpty, int x, int y, int tray) {
	super(id, label, isEmpty ? "TrashEmpty" : "TrashFull", null, null, x, y, tray, null);
	this.isEmpty = isEmpty;
	this.description = "Add virtual trash folder.";
  }
  
  public boolean isEmpty() {
    return isEmpty;
  }

  public void setEmpty(boolean isEmpty) {
    this.isEmpty = isEmpty;
  }

  @Override
  public int getCommandId() {
    return serialUid;
  }

}